package com.ruoyi.pcwl.domain.enums;

import com.ruoyi.pcwl.domain.PcwlShopEnv;

//使用enum关键字枚举类
public enum MediaTypeEnum {
    //1.提供当前枚举类的对象，多个对象之间用","隔开，末尾对象";"结束
    CAROUSEL(1,"Carousel/"),
    VEDIO(2, "Vedio/"),
    PCWLSHOPENV(3, "PcwlShopEnv/"),
    PCWLSHOPDETAILS(4,"PcwlShopDetails/"),
    SCENICSPOT(5, "ScenicSpot/"),
    HOTEL(6, "Hotel/"),
    PCWLSHOP(7, "PcwlShop/"),
    TRAVEL(8, "Travel/");
//    SUMMER("夏天","夏日炎炎"){
//        @Override
//        public void show() {
//            System.out.println("宁夏");
//        }
//    },
//    AUTUMN("秋天","秋高气爽"){
//        @Override
//        public void show() {
//            System.out.println("秋天不回来");
//        }
//    },
//    WINTER("冬天","冰天雪地"){
//    };

    //2.声明Season对象的属性:private final修饰
    private final Integer categoryId;
    private final String categoryName;

    //2.私有化类的构造器,并给对象属性赋值

    private MediaTypeEnum(Integer categoryId, String categoryName){
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    //4.其他诉求1：获取枚举类对象的属性
    public Integer getCategoryId() {
        return categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }
}
